package com.example.demo.vo;

import com.example.demo.util.Date2LongSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;


/**
 *@Description 操作员返参
 *@Author Levi
 *@Date 2019/4/23-14:02
*/
@Data
@ApiModel(value = "操作员返参", description = "操作员返参")
public class OperatorVO {

    @ApiModelProperty(value = "主键", name = "id")
    private Long id;

    @ApiModelProperty(value = "账号", name = "username")
    private String username;

    @ApiModelProperty(value = "最后登录Ip", name = "lastLoginIp")
    private Long lastLoginIP;

    @ApiModelProperty(value = "最后登录时间", name = "lastLoginTime")
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date lastLoginTime;

    @ApiModelProperty(value = "登录次数", name = "loginTimes")
    private Long loginTimes;
}
